<form id="shiro_role_form_form" method="post" style="margin: 5px;">
    <input name="data.id" value="${data.id!}" style="display:none;"/><br/>
    <input name="data.name" value="${data.name!}" class="easyui-textbox"
           data-options="prompt:'角色名称',label:'角色名称',labelWidth:100,labelAlign:'right',width:'100%',required:true"/>
    <input name="data.code" value="${data.code!}" class="easyui-textbox"
           data-options="prompt:'角色编码',label:'角色编码',labelWidth:100,labelAlign:'right',width:'100%'"/>
    <select id="shiro_role_form_resourceTree" name="resourceIds" class="easyui-combotree"
            data-options="prompt:'权限',label:'权限',labelWidth:100,labelAlign:'right',width:'100%',
                        url:'${ctxPath}/shiro/resource/tree',parentField:'pid',editable:true,multiple:true,cascadeCheck:false
                        ,onLoadSuccess:function(node, data){
                            $('#shiro_role_form_resourceTree').combotree('setValues',[${resourceIds!}]);
                        }">
    </select>
</form>